﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace C_
{
    class B
    {
        private B()
        {
            Console.WriteLine($"hhhhhhhh: " + $"{Thread.CurrentThread.ManagedThreadId}");
        }

        private static object _lock = new object();
        static public B GetA()
        {

            return _sInst;
        }

        static private B _sInst = new B();

        public void Print()
        {
            Console.WriteLine("hhhhhhhhhhh");
        }
    }
}
